package edu.spec.wechat.kit;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by MadFrog on 2016/11/1.
 */
public class MessageCreateKit {
    public static String createTextMessage(Map<String, Object> map, String content){
        Map<String, String> replayMap = new HashMap<String, String>();
        replayMap.put("ToUserName", (String)map.get("FromUserName"));
        replayMap.put("FromUserName", (String)map.get("ToUserName"));
        replayMap.put("CreateTime", System.currentTimeMillis()+"");
        replayMap.put("MsgType", "text");
        replayMap.put("Content", content);
        return MessageKit.map2xmlString(replayMap);
    }
}
